package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 调度员管理
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_dispatcher")
@ApiModel(value="Dispatcher对象", description="调度员管理")
public class Dispatcher extends Model<Dispatcher> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "调度员标识")
    @TableId(value = "dispatcherID", type = IdType.AUTO)
    private Integer dispatcherID;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "角色，0调度员")
    @TableField("role")
    private Integer role;

    @ApiModelProperty(value = "值班状态(0= 值班 1=未值班)")
    @TableField("on_duty_status")
    private Integer onDutyStatus;

    @ApiModelProperty(value = "所属医院")
    @TableField("hospital")
    private String hospital;

    @ApiModelProperty(value = "上次登陆时间")
    @TableField("last_login")
    private LocalDateTime lastLogin;

    @ApiModelProperty(value = "登陆ip")
    @TableField("login_ip")
    private String loginIp;


    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty(value = "账户标识")
    @TableField("cid")
    private Integer cid;


    @Override
    protected Serializable pkVal() {
        return this.dispatcherID;
    }

}
